.loginPage {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(#141e30, #243b55);

  .login {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 400px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);

    h2 {
      color: #fff;
      margin-bottom: 30px;
    }

    .login_box {
      position: relative;
      width: 100%;

      input {
        outline: none;
        border: none;
        width: 100%;
        padding: 10px 0;
        margin-bottom: 30px;
        color: #fff;
        font-size: 16px;
        border-bottom: 1px solid #fff;
        background-color: transparent;
        // 正常状态下
        &::placeholder {
          opacity: 0;
        }

        // 聚焦就显示
        &:focus::placeholder {
          opacity: 1;
        }

        &:focus + label,
        &:valid + label {
          top: -20px;
          color: #03e9f4;
          font-size: 12px;
        }
      }

      label {
        position: absolute;
        top: 0;
        left: 0;
        padding: 10px 0;
        color: #fff;
        pointer-events: none;
        transition: all 0.5s;
      }
    }

    // region 注册按钮
    .registerButton {
      background-color: transparent; // 可以选择不同的背景颜色
      color: #03e9f4; // 文本颜色
      margin-top: 30px; // 与登录按钮之间的间距
      text-decoration: none;
      transition: all 0.5s;
      border: 0;
      &:hover {
        // 鼠标悬停时的样式
        color: #fff;
        border-radius: 5px;
        background-color: #03e9f4;
        box-shadow: 0 0 5px #03e9f4, 0 0 25px #03e9f4, 0 0 50px #03e9f4, 0 0 100px #03e9f4;
        // ...其他悬停时的样式
      }
    }
    // endregion

    // region 登录按钮
    .loginButton {
      background-color: transparent;
      border: 0;
      border-radius: 8% 8px;
      overflow: hidden;
      position: relative;
      padding: 10px 20px;
      color: #03e9f4;
      text-decoration: none;
      transition: all 0.5s;

      &:hover {
        color: #fff;
        border-radius: 5px;
        background-color: #03e9f4;
        box-shadow: 0 0 5px #03e9f4, 0 0 25px #03e9f4, 0 0 50px #03e9f4, 0 0 100px #03e9f4;
      }

      span {
        position: absolute;
        background: linear-gradient(transparent, #03e9f4);

        &:first-child {
          top: 0;
          left: -100%;
          width: 100%;
          height: 2px;
          background: linear-gradient(to right, transparent, #03e9f4);
          animation: glowingLineTop 1s linear infinite;
        }

        &:nth-child(2) {
          right: 0;
          top: -100%;
          width: 2px;
          height: 100%;
          background: linear-gradient(transparent, #03e9f4);
          animation: glowingLineRight 1s linear 0.25s infinite;
        }

        &:nth-child(3) {
          right: -100%;
          bottom: 0;
          width: 100%;
          height: 2px;
          background: linear-gradient(to left, transparent, #03e9f4);
          animation: glowingLineBottom 1s linear 0.5s infinite;
        }

        &:last-child {
          left: 0;
          bottom: -100%;
          width: 2px;
          height: 100%;
          background: linear-gradient(#03e9f4, transparent);
          animation: glowingLineLeft 1s linear 0.75s infinite;
        }
      }
    }
    // endregion
  }
  // region 按钮动画
  @keyframes glowingLineTop {
    0% {
      left: -100%;
    }
    50%, 100% {
      left: 100%;
    }
  }

  @keyframes glowingLineRight {
    0% {
      top: -100%;
    }
    50%, 100% {
      top: 100%;
    }
  }

  @keyframes glowingLineBottom {
    0% {
      right: -100%;
    }
    50%, 100% {
      right: 100%;
    }
  }

  @keyframes glowingLineLeft {
    0% {
      bottom: -100%;
    }
    50%, 100% {
      bottom: 100%;
    }
  }
  // endregion
}


